{extend name="default/base" /}
{block name="css"}
<link href="__SHOP__/css/recharge.css?v={$v}" rel="stylesheet">
{/block}
{block name="main"}
<div class='wst-shop-content'>
    <div class='pay-sbox'>
    	<div>
    		<div>
				<div class='wst-tips-box'>
				<div class='icon'></div>
					<div class='tips'>
						1.充值金额和赠送金额不能提现；<br/>
					</div>
				<div style="clear:both"></div>
	           	</div>
    		</div>
	   		<div class="wst-form">
			    <div class="pay-type" style="overflow: hidden;">充值金额
			    <div>
			       <div class="wst-list-box">
			          {volist name="chargeItems" id="item"}
			          	<div class="wst-frame2 {$key} " onclick="javascript:changeSelected({$item['id']},'itmeId',this)">
				          	{if condition="$item['giveMoney'] gt 0"}
				          	<div class='charge-doub'>充值 <span class="charge-money">{$item['chargeMoney']}</span> 元</div>
				        	<div>送 {$item['giveMoney']} 元</div>
				        	{else/}
				        	<div class='charge-alone'>充值 <span class="charge-money">{$item['chargeMoney']}</span> 元</div>
				          	{/if}
				          	<i></i>
			     		</div>
			          {/volist}
			          	<div class="wst-frame2 " onclick="javascript:changeSelected(0,'itmeId',this)">
				        	<div class='charge-alone'>
				        		<span class="j-charge-other">其他金额</span>
				        		<span class="j-charge-money"><input class="charge-othermoney j-ipt" id="needPay" value="1" maxlength="10" data-rule="充值金额:required;" onkeypress="return WST.isNumberKey(event)" onkeyup="javascript:WST.isChinese(this,1)" maxlength="8"></span>
				        	</div>
				          <i></i>
			   			</div>
			          	<input type="hidden" value="" id='itmeId' class='j-ipt' />
			          <div class='f-clear'></div>
			       </div>
			  		
			    </div>
			    </div>
	    	</div><div></div>
		    <div>
			   
			    <div class="pay-type">选择支付方式</div>
			    <div class="pay-list" style="overflow: hidden;">
			    	<input type="hidden" id="payCode" name="payCode" />
			    	{volist name="payments" id="payment"}
	                 	{if condition="$payment['isOnline'] eq 1"}
	                    	<div class="wst-payCode-{$payment['payCode']}" data="{$payment['payCode']}"></div>
	                 	{/if}
	                 {/volist}
			         <div class="wst-clear"></div>
			    </div>
			    <div class="bnt-box">
			    	<button type='button' class='btn btn-success' onclick='javascript:getPayUrl();' class="wst-pay-bnt"><i class='fa fa-shield'></i>确认提交支付</button>
			    </div>
	    	</div>
        </div>
    </div>
</div>
<div id="alipayform" style="display:none;"></div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__SHOP__/recharge/recharge.js?v={$v}'></script>
{/block}

